Repository navigation
[Snyk] Upgrade monaco-editor - #240
Merged
Merged
Conversation
Snyk has created this PR to upgrade monaco-editor from 0.52.2 to 0.53.0. See this package in npm: monaco-editor See this project in Snyk: https://app.snyk.io/org/blankll/project/d19c39b4-9b25-4232-b09a-2d71e94c8a24?utm_source=github&utm_medium=referral&page=upgrade-pr
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #240 +/- ##
==========================================
+ Coverage 50.55% 50.69% +0.13%
==========================================
Files 24 24
Lines 360 361 +1
Branches 53 53
==========================================
+ Hits 182 183 +1
Misses 174 174
Partials 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
|
@copilot, analyze the failure and fix those incompatible issues |
Contributor
Monaco-editor 0.55.0 introduced breaking changes by moving nested
namespaces (`languages.typescript`, `languages.json`, etc.) to top-level
exports. The existing code used the deprecated API, causing TypeScript
compilation failures.
## Changes
- **Updated monaco-editor**: 0.53.0 → 0.55.1 (latest stable)
- **Fixed TypeScript namespace usage**: Migrated from
`monaco.languages.typescript.typescriptDefaults` to top-level
`typescript.typescriptDefaults` export
- **Added Window type extension**: Declared `MonacoEnvironment` property
on Window interface to resolve TypeScript compilation error
- **Updated test mocks**: Reflected new API structure in Jest mocks
## Example
```typescript
// Before (deprecated in 0.55.0)
import * as monaco from 'monaco-editor';
monaco.languages.typescript.typescriptDefaults.setEagerModelSync(true);
// After
import * as monaco from 'monaco-editor';
import { typescript } from 'monaco-editor';
typescript.typescriptDefaults.setEagerModelSync(true);
```
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Blankll <28639911+Blankll@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade monaco-editor from 0.52.2 to 0.53.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 16 versions ahead of your current version.
The recommended version was released a month ago.
Release notes
Package name: monaco-editor
-
0.53.0 - 2025-09-08
- #4980: sets node version
- #4979: v0.53.0
- #4978: updates changelog
- #4975: Fixes worker sandbox problems
- #4969: Implements language selection
- #4967: adds amd and firefox/webkit to smoke tests
- #4966: Fixes AMD web worker loading
- #4965: Updates monaco-editor-core dependency & fixes basic-languages amd file
- #4964: Run npm run playwright-install
- #4963: Hediet/b/successful mosquito
- #4962: Fixes node version
- #4950: ESM Progress
- #4913: Bump webpack-dev-server from 4.10.0 to 5.2.1 in /samples
- #4915: Add snowflake sql keywords
- #4895: Fixes #4799
- #4742: Update webpack plugin to support module workers
- #4824: Fix CI and website workflows
- #4747: Engineering - add dependsOn field
- #4734: Bump express from 4.19.2 to 4.21.1 in /website
- #4616: Bump requirejs from 2.3.6 to 2.3.7
- #4668: Bump micromatch from 4.0.5 to 4.0.8 in /website
- #4726: Bump http-proxy-middleware from 2.0.6 to 2.0.7 in /website
- #4595: Bump ws from 8.8.1 to 8.18.0 in /samples
- #4697: Bump body-parser and express in /samples
- #4696: Bump rollup from 2.79.1 to 2.79.2
-
0.53.0-rc2 - 2025-09-08
-
0.53.0-dev-20250908 - 2025-09-08
-
0.53.0-dev-20250907 - 2025-09-07
-
0.53.0-dev-20250906 - 2025-09-06
- #4978: updates changelog
- #4975: Fixes worker sandbox problems
-
0.53.0-dev-20250905 - 2025-09-05
-
0.53.0-dev-20250904 - 2025-09-04
-
0.53.0-dev-20250903 - 2025-09-03
-
0.53.0-dev-20250902 - 2025-09-02
-
0.53.0-dev-20250901 - 2025-09-01
-
0.53.0-dev-20250831 - 2025-08-31
-
0.53.0-dev-20250830 - 2025-08-30
-
0.53.0-dev-20250829 - 2025-08-29
-
0.53.0-dev-20250828.2 - 2025-08-28
-
0.53.0-dev-20250828.1 - 2025-08-28
-
0.53.0-dev-20250828 - 2025-08-28
-
0.52.2 - 2024-12-09
from monaco-editor GitHub release notesChanges:
See More
This list of changes was auto generated.
No content.
No content.
No content.
Changes:
This list of changes was auto generated.
No content.
No content.
No content.
No content.
No content.
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: